package oops;

public class StaticInitializers {
	
	// Method 1: Static Block
	public static int i = -1;
	static {
		i = +1;
	}
	
	// Method 2: Static Method
	public static int j = updateJ(2); 
	private static int updateJ(int newJ) {
		return newJ;
	}

	public static void main(String[] args) {
		System.out.println("i: " + StaticInitializers.i);
		System.out.println("j: " + StaticInitializers.j);
	}

}
